<?php
Route::group(['namespace' => 'Admin','prefix' => 'admin','middleware' => 'admin.login'],function(){
    Route::get('index','IndexController@index');



    //用户相关
    Route::resource('user','UserController');


    //用户删除
    Route::post('user/del/{id}','UserController@del');

    //栏目相关
    Route::resource('cat','CatController');

    //删除栏目路由
    Route::post('cat/del/{id}','CatController@del');

    //图片管理
    Route::resource('image','ImageController');

    //用户搜索路由
    Route::get('/findUser','UserController@index');

    //图片删除
    Route::post('image/del/{id}','ImageController@del');

});